import React, { Component } from 'react';
import { SearchBox } from '../style'
import searchIcon from '@/assets/icon/search.png'
import { withRouter } from 'react-router-dom'

@withRouter
class Search extends Component {
  render() {
    return (
      <SearchBox onClick={() => {
        console.log(this.props.history.push)
      }}>
        <img src={searchIcon} alt="" />
        <span>搜索您想要的菜系，如：徽菜</span>
      </SearchBox>
    );
  }
}

export default Search;
